package com.yfp.tissue.mapper;

import com.yfp.common.datascope.annotation.DataScope;
import com.yfp.tissue.domain.Dto.AreaDto;
import com.yfp.tissue.domain.entity.Area;
import com.yfp.tissue.domain.vo.AreaVO;
import com.yfp.tissue.domain.vo.CompanyListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AreaMapper {

    List<AreaVO> queryAllByLimit(AreaDto areaDto);

    List<AreaVO> findList(AreaDto areaDto);

    int insert(Area area);

    int update(Area area);

    List<Area> queryById(@Param("companyId") String companyId, @Param("enable") String enable);

    Area queryCompany(String areaId);

    List<AreaVO> conditionsArea(String companyId);

    void updateEnable(Area ar);

    List<CompanyListVO> queryCompanyList(@Param("list") List<String> list);

    @DataScope(deptAlias = "a")
    List<Area> queryAll(Area area);

    Area getById(String areaId);
}
